/*whileAndSwitch.c -- 循环和多重判断结合使用*/
#include "stdio.h"

int main(){

    char ch;
    while((ch = getchar()) != 'q'){
        switch(ch){
            case 'A': putchar("this is A");break;
            case 'B': putchar("this is B");break;
            default: putchar("auther one");break;
        }
    }

    return 0;
}